/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GPSMapper;

/**
 *
 * @author thomas.s
 */
public class GPSPoint {
    public double lon, lat;
    public float alt;
    public long time;
    public String name;

    public GPSPoint( double _lon, double _lat, float _alt, String _name )
    {
        lon=_lon; lat=_lat; alt=_alt; name=_name; time=System.currentTimeMillis();
    }

    public long getDeltaTime( long t ) { return t-time; }
    public double getDeltaLat( double n ) { return lat-n; }
    public double getDeltaLon( double n ) { return lon-n; }

    public int normLat( double zero, double f )
    {
        return (int)((lat-zero)*f);
    }
    public int normLon( double zero, double f )
    {
        return (int)((lon-zero)*f);
    }
}
